package cn.jr.pojo;

//商品表
@SuppressWarnings("all")
public class Wares {

    private Integer waresId;//商品表主键
    private String waresNumber;//商品编号
    private String waresName;//商品名称
    private Double waresPrice;//商品单价

    //三个参（没有主键）
    public Wares(String waresNumber, String waresName, Double waresPrice) {
        this.waresNumber = waresNumber;
        this.waresName = waresName;
        this.waresPrice = waresPrice;
    }

    //1个参，商品编号
    public Wares(String waresNumber) {
        this.waresNumber = waresNumber;
    }

    public Wares() {
    }

    //全参
    public Wares(Integer waresId, Double waresPrice, String waresName, String waresNumber) {
        this.waresId = waresId;
        this.waresPrice = waresPrice;
        this.waresName = waresName;
        this.waresNumber = waresNumber;
    }

    @Override
    public String toString() {
        return "Wares{" +
                "waresId=" + waresId +
                ", waresNumber='" + waresNumber + '\'' +
                ", waresName='" + waresName + '\'' +
                ", waresPrice=" + waresPrice +
                '}';
    }

    public Integer getWaresId() {
        return waresId;
    }

    public void setWaresId(Integer waresId) {
        this.waresId = waresId;
    }

    public String getWaresNumber() {
        return waresNumber;
    }

    public void setWaresNumber(String waresNumber) {
        this.waresNumber = waresNumber;
    }

    public String getWaresName() {
        return waresName;
    }

    public void setWaresName(String waresName) {
        this.waresName = waresName;
    }

    public Double getWaresPrice() {
        return waresPrice;
    }

    public void setWaresPrice(Double waresPrice) {
        this.waresPrice = waresPrice;
    }

}
